/*
 *  Borum, Boolean rule manipulator.
 *  Copyright (C) 2009 Jon Lennersten, Johan Hedin, Daniel Rosenberg
 *
 *  This file is part of Borum.
 *
 *  Borum is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Lesser General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  Borum is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public License
 *  along with Borum.  If not, see <http://www.gnu.org/licenses/>.
 */

package com.mawell.borum;

import net.antonioshome.swing.treewrapper.DeepCopyNode;

import java.awt.*;

public abstract class Term extends DeepCopyNode {

    private Object translationForTerm;

    public Object getTranslationForTerm() {
        return translationForTerm;
    }

    public void setTranslationForTerm(Object translationForTerm) {
        this.translationForTerm = translationForTerm;
    }

    public abstract String getName();

    public abstract String toString();

    /**
     * Open an editor and returns whether save or cancel was pushed
     *
     * @param locationRelativeToComp component to position the editor at
     * @return true if "Save" was pressed, false otherwise
     */
    public abstract boolean edit(Component locationRelativeToComp);
}
